const service = require('../settingService.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    password:"",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  inputCode: function (e) {
    let self = this;
    self.setData({
      password: e.detail.value
    });
  },

  submit:function(){
    wx.switchTab({
      url: '../../mine',
    })
    return
    let param = { "password": password}
    service.resetPassword(param, function (res) {
       wx.switchTab({
         url: '../../mine',
       })
    }, function (err) {
      wx.showToast({
        title: err.data.message,
        icon: 'none',
        duration: 2000,
      })
    })
  },
})